package think.enums;

public class Test {
	public static void main(String[] args) {
		System.out.println(Code.FAIL);
		Code flag = Code.FAIL;
		switch(flag){
			case FAIL:System.out.println(flag.getCode()+"::" +flag.getDesc()); break;
			case SUCCESS:System.out.println(flag.getCode()+"::" +flag.getDesc());break;
			case EXCEPTION:System.out.println(flag.getCode()+"::" +flag.getDesc());break;
			default : System.out.println("warn");
		}
	}
}	
